﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FacebookWrapper.ObjectModel;

namespace B13_Ex03_David_300512340_Alexey_321203689
{
    /// <summary>
    /// Pattern: Strategy.
    /// Role: ConcreteStrategy.
    /// Implements the algorithm using the Strategy interface.
    /// </summary>
    public class SearchPostByWord : ISearchPost
    {
        public bool SearchByParametrs(Post i_Feed, ValuesToSearch i_Obj)
        {
            return i_Feed.Message.Contains(i_Obj.WordToSearch);
        }
    }
}
